package com.yun2.bms;
/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/5/19
 */


import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.stage.Stage;

import java.io.IOException;

public class Login extends Application {

    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws IOException {

        Parent root = FXMLLoader.load(getClass().getResource("/fxml/login.fxml"));
        Scene scene = new Scene(root, 320, 275);
        primaryStage.setTitle("MiniLibrary--图书管理系统");
        primaryStage.setScene(scene);
        //设置窗口的图标.
        //primaryStage.getIcons().add(new Image(getClass().getResourceAsStream("/images/png-0014.png")));
        //窗口大小不能改变
        primaryStage.setResizable(false);
        primaryStage.show();
    }
}
